package Widget

import "github.com/lxn/walk/declarative"

type WidgetTxt struct {
	Sprite *declarative.Label
	Text   *declarative.Label
}

func (m *WidgetTxt) SetTitleText(txt string) {
	m.Text.Text = txt
}

func CreateWidgetTxt() *WidgetTxt {
	label := &declarative.Label{
		//Text: "                        主窗口信息：",
	}
	f := &WidgetTxt{
		Sprite: label,
	}
	f.Sprite = label
	f.Text = label
	return f
}
